package com.qf.cx.simplenms.link.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import com.qf.cx.simplenms.common.config.CommonConfig;
import com.qf.cx.simplenms.link.rai.JnaLibFactory;
import com.qf.cx.simplenms.link.rai.RaiLibrary;
import com.qf.cx.simplenms.link.rai.RaiLibraryWrapper;

/**
 * Created by linda on 2016/11/13.
 */
@Configuration
@ComponentScan(/*basePackageClasses = { CommonConfig.class },*/ basePackages = {"com.qf.cx.simplenms.link.impl"})
public class LinkSpringConfig {
	@Bean
	public JnaLibFactory jnaLibFactory() {
		return new JnaLibFactory();
	}

	@Bean
	public RaiLibrary getRaiLibrary() {
		return new RaiLibraryWrapper(jnaLibFactory().getRaiLibrary());
	}
}
